package com.fangfei.runtest.Config;

import lombok.Getter;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.Map;

public class TestConfig {

    @Getter
    private JdbcTemplate jdbcTemplate;

    @Getter
    private RestTemplate restTemplate;

    @Getter
    private String baseUrl = "http://xxxx/v1/";

    @Getter
    private String selectsql = "SELECT * FROM test_data order by id asc limit 0,100";

    @Getter
    private Map<String, Object> userMap;

    public TestConfig(JdbcTemplate jdbcTemplate, RestTemplate restTemplate){
        this.jdbcTemplate = jdbcTemplate;
        this.restTemplate = restTemplate;

        this.userMap = new HashMap<>();
        userMap.put("appid","xxxxx");
        userMap.put("test","xxxxxx");
        userMap.put("unique_str","xxxxx");
        userMap.put("invite_code","xxxxx");
    }

}
